import Login from './Login'
import * as actions from '../../redux/actions/UserAction'
import { User } from '../../redux/Types'
import { Dispatch } from 'redux'
import { connect } from 'react-redux'

export function mapDispatchToProps(dispatch: Dispatch<actions.LoginActions>) {
  return {
    login: (user: User) => dispatch(actions.Login(user)),
  }
}
export default connect(null, mapDispatchToProps)(Login)